<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>Article_index</title>
	<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>public/css/bootstrap-theme.min.css" >
	<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>public/css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>public/css/style.css">
</head>
<body>
	<?php
  $this->load->view("head");
  ?>
<!---             banner             -->
  <div>
    <img src="<?php echo base_url(); ?>public/img/banner.jpg"/>
  </div>
  <br/>
<!---             item               -->
  <div class="container">
    <div class="line">
    </div>
    <div class="row">
  <div class="col-md-8"><?php 
       foreach ($articles as $a) {
          ?>
        <div class="item clearfix">
          <div class="item_title">
            <a href="<?php echo site_url('/article/view/'.$a->id) ?>"><?php echo $a->title ?></a>
            <div class="pull-right"><?php echo $a->view; ?>次浏览</div>
          </div>
          <img src="<?php echo base_url().'public/'.$a->img ?>" />
          <div class="item_desc"><?php echo $a->desc ?></div>
          <div class="item_time"><i class="glyphicon glyphicon-time"></i><?php echo date("Y-m-d",$a->create_time) ?></div>
          <a href="<?php echo site_url('/article/view/'.$a->id) ?>" class="item_button btn btn-info btn-sm">阅读全文>></a>
        </div>
        <hr/>
      <?php
        }
        ?></div>
    <div class="col-md-4"></div>
  </div>
    
  </div>


	
</body>
</html>